//
//  AppMacro.h
//
//  Created by 杨 锐 on 14-5-21.
//  Copyright (c) 2014年 Rui. All rights reserved.
//

//DEBUG打印,替代系统NSLog()方法
#ifdef DEBUG
#define                         DLog(fmt,...) NSLog((@"%s [line %d]" fmt),__PRETTY_FUNCTION__,__LINE__,##__VA_ARGS__)
#else
#define                         DLog(...)
#endif

//定义一个weakSelf用于block里面
#define kWS(weakSelf)           __weak __typeof(&*self)weakSelf = self;

//生成唯一字符串
#define kIdentifierString       (NSString*)CFBridgingRelease(CFUUIDCreateString(NULL,CFUUIDCreate(NULL)))

#define kUserdefaults           [NSUserDefaults standardUserDefaults]

//用户信息归档路径
#define kUserPath               [NSString stringWithFormat:@"%@%@",kPATH_OF_TEMP,@"user.archiver"]

//颜色(RGB)
#define kRGBA(r,g,b,a)          [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:a]

//百度地图Key
#define BMKMapKey               @"ibG2G06WwfZIYUtPI0jCPUBD"

//服务器地址
#define kHttpURL                @"http://115.29.100.101:8080"

//短信发送地址
#define ksmsSendurl             @"http://m.5c.com.cn/api/send/"

//短信验证码key
#define ksmskey                 @"0b22f0f7e4eee17e5c92273ff6e4d897"

//短信验证码用户名
#define ksmsusername            @"xinghengkeji"

//短信验证码密码
#define ksmspassword            @"xingheng446688"

#define SectionTitle            @"title"
#define SectionValue            @"value"

//阿里云图片访问地址
#define aliyunOSSIMGURL         @"http://img.meishangapp.com/"

//阿里云北京数据中心地址
#define aliyunOSSURL            @"oss-cn-beijing.aliyuncs.com"

//阿里云accessKey
#define myAccessKey             @"xAyznLFCHHHtWhTl"

//阿里云secretKey
#define mySecretKey             @"nkpdBhRnHGtsH7EsojoUo0OzdeXE37"

//阿里云Bucket
#define myBucket                @"xingheng-test"
